#include <iostream>
#include <cstdio>
using namespace std;
double Y[12], N[12];
double a[12], b[12], c[12];
double ANS[13];
int main() {
	for (int i=0; i<12; ++i) cin>>a[i];
	for (int i=0; i<12; ++i) cin>>b[i];
	for (int i=0; i<12; ++i) cin>>c[i];
	for (int i=0; i<12; ++i) {
		N[i]=(1-a[i])*(1-b[i])*(1-c[i]);
		Y[i]=1-N[i];
	}
	int len=(1<<12);
	for (int i=0; i<13; ++i) ANS[i]=0.0;
	for (int i=0; i<len; ++i) {
		int cnt=0;
		double t=1;
		for (int j=0, k=1; j<12; ++j, k=(k<<1)) {
			if ((i&k)==0) {
				t=t*N[j];
			}
			else {
				t=t*Y[j];
				++cnt;
			}
		}
		ANS[cnt]+=t;
	}
	for (int i=0; i<13; ++i) printf("%0.6lf\n", ANS[i]);
	return 0;
}
